﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Proggy.Web.Cms.ViewModels
{
    /// <summary>
    /// View model for forms logon
    /// </summary>
    public class ProggyFormsAuthenticationLogonViewModel
    {
        /// <summary>
        /// Username
        /// </summary>
        [DataType(DataType.Text), Required]
        public string Username { get; set; }

        /// <summary>
        /// Password
        /// </summary>
        [DataType(DataType.Password), Required]
        public string Password { get; set; }

        /// <summary>
        /// If true, will add cookie
        /// </summary>
        [Display(Name="Keep me logged on?")]
        public bool KeepMeLoggedOn { get; set; }

        /// <summary>
        /// Return url
        /// </summary>
        public string ReturnUrl { get; set; }
    }
}
